<div id="content">
				<!-- main news -->
				<div id="page-title">Hình ảnh hoạt động</div>
				<?php foreach($data0 as $k=>$v){?>
				<a href="<?php echo $this->Seo->link('/images/index/'.$v['ImageCategory']['id']);?>">
				<div class="item">
				<div style="background-color:#E9E9E9;width:276px;height:181px;">
					<img src="<?php echo empty($v['ImageCategory']['image'])?$this->webroot.'img/thumb_noimg.jpg':$this->webroot.'uploaded/Image/large/'.$v['ImageCategory']['image'];?>" id="main-news-img<?php echo $v['ImageCategory']['id']?>" class="main-news-img" />
				</div>
					<script type="text/javascript">
						document.getElementById("main-news-img<?php echo $v['ImageCategory']['id']?>").onload = function () {
							var newSize = new resizeImage(this.width,this.height,276,181);
							this.width=newSize.width;
							this.height=newSize.height;
							this.style.marginLeft=((276-newSize.width)/2)+"px";
							this.style.marginTop=((181-newSize.height)/2)+"px";


						}
					</script>
					<center><div id="title"><?php echo $v['ImageCategory']['title']?></div></center>
				</div>
				</a>
				<?php if(($k+1)%3==0) echo '<div style="clear:both"></div>';?>
				<?php }?>
				
				<div style="clear:both"></div>	
				<?php $paging=$this->Paginator->getPages();
					if($paging['totalPage']>1){
				?>
				<div id="paging">
					<?php for($i=$paging['totalPage'];$i>0;$i--){
						if($i==$paging['currentPage'])echo '<div class="page" id="curpage">'.$i.'</div>';
						else{
					?>
					<a href="<?php echo $this->Seo->link('/image_categories/index/'.$i);?>"><div class="page" onmouseout="this.style.border='solid 1px #EFEFEF'" onmouseover="this.style.border='solid 1px #a0a0a0'"><?php echo $i?></div></a>
					<?php }}?>
					
				</div>
				<?php }?>
				<div style="clear:both;height:20px;"></div>	
			</div>